package cn.lanchengkeji.datafillingsystem.common;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * Created by yuhao on 2019-05-20 .
 */
@Data
public class ApiResponseBean {

    // 状态码
    private Boolean success;

    // 提示信息
    private String msg;

    // 数据集合
    private List list;

    // 数据最近更新时间
    private String dataDate;

    // 供电所台区线损合格率
    @JsonProperty(value = "Tqxshgl")
    private String Tqxshgl;

    // 供电所绩效合计（线损绩效、采集绩效）
    @JsonProperty(value = "Jxhj")
    private String Jxhj;

    // 线损异常、采集异常明细条数
    private int total;

    // 台区销项计划条数
    private int tqxxCount;

    // 供电所采集成功率
    @JsonProperty(value = "SuccessPercent")
    private String SuccessPercent;

    // 采集成功率明细条数
    private int cjcglmxCount;

    // 未采集明细条数
    private int wcjCount;

    // 数据总条数
    private int records;

    public ApiResponseBean(boolean success,String msg,Object data,String dataDate){
        this.success = success;
        this.msg = msg;
        this.list = (List)data;
        this.dataDate = dataDate;
    }

    public ApiResponseBean(boolean success, String msg, Object data, String dataDate, int records){
        this.success = success;
        this.msg = msg;
        this.list = (List)data;
        this.dataDate = dataDate;
        this.records = records;
    }

    public ApiResponseBean(boolean success,String msg,Object data,String dataDate,String Tqxshgl,String Jxhj,String xsFlag){
        this.success = success;
        this.msg = msg;
        this.list = (List)data;
        this.dataDate = dataDate;
        this.Jxhj = Jxhj;
        this.Tqxshgl = Tqxshgl;
    }

    public ApiResponseBean(boolean success,String msg,Object data,String dataDate,int total,int tqxxCount){
        this.success = success;
        this.msg = msg;
        this.list = (List)data;
        this.dataDate = dataDate;
        this.total = total;
        this.tqxxCount = tqxxCount;
    }

    public ApiResponseBean(boolean success,String msg,Object data,String dataDate,String SuccessPercent,String Jxhj){
        this.success = success;
        this.msg = msg;
        this.list = (List)data;
        this.dataDate = dataDate;
        this.Jxhj = Jxhj;
        this.SuccessPercent = SuccessPercent;
    }

    public ApiResponseBean(boolean success,String msg,Object data,String dataDate, int total,int cjcglmxCount,int wcjCount){
        this.success = success;
        this.msg = msg;
        this.list = (List)data;
        this.dataDate = dataDate;
        this.total = total;
        this.cjcglmxCount = cjcglmxCount;
        this.wcjCount = wcjCount;
    }


}
